package com.example.iotmanagerment26.service;

import com.example.iotmanagerment26.domain.Room;

import java.util.List;
import java.util.Map;

public interface RoomService {

    List<Room> selectAllRoom();
    List<Room> selectRoomInfoByName(String roomName);
    int insertRoom(String name);
    int deleteRoom(String name);

    int insertRoomUser(String name, String user);

    int insertRoomDevice(String name, String device);

    int deleteRoomDevice(String name, String device);

    int deleteRoomUser(String name, String user);

    List<Map<String, Object>> selectAllUnbindRoomUser();

    List<Map<String, Object>> selectAllUnbindRoomDevice();

    List<Map<String,Object>> selectRoomAndDeviceByUser(String userName);
}
